package com.cloud.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Data
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "gateway")
public class GatewayConfig {
    /**
     * 是否调试
     */
    private boolean debug;

    /**
     * 是否升级
     */
    private boolean upgrade;

    /**
     * 升级URI的前缀
     */
    private List<String> upgradeURIPrefixs;

    /**
     * 登录URI的后缀
     */
    private List<String> loginURISuffixs;

    /**
     * 排除URI的后缀
     */
    private List<String> excludeURISuffixs;

    /**
     * 排除URI的前缀
     */
    private List<String> excludeURIPrefixs;
}
